const router = require('express').Router()
const { Movie } = require('@/models')
const { data } = require('@/utils/send')
router.get('/', async (req, res) => {
    try {
        const list = await Movie.findAll({ where: { is_delete: 0 } })
        const datas = data({ message: '获取成功', data: list })
        res.send(datas)
        res.locals.data = datas
    } catch (error) {
        res.cc(error)
    }
})
module.exports = router